<?php
$book_config['dbhost'] = "localhost"; 	//hostname, in this case localhost
$book_config['dbdatabase'] = "book"; 	//mysql database
$book_config['dbusername'] = "root"; 	//mysql username
$book_config['dbpassword'] = ""; 		//mysql password
$salt = "hJfdo8wqIOb54AtRgf";			//a salt used for being combined with a userpassword before hashing, to improve security

if (!isset($book_config['dblink'])) 	//check to see if the connection is already established, if it is, do nothing
{
	$book_config['dblink'] = mysql_connect($book_config['dbhost'],$book_config['dbusername'],$book_config['dbpassword']);
	if (!$book_config['dblink'])
	{
		die('Could not connect to database: '.mysql_error());
	}
	mysql_select_db($book_config['dbdatabase'],$book_config['dblink']);
}

?>
